package com.franklin.ideaplugin.maphelper.col.operation.impl.collection.list;

import com.franklin.ideaplugin.maphelper.col.method.IColCreateMethod;
import com.franklin.ideaplugin.maphelper.col.operation.IColCreateOperation;
import com.franklin.ideaplugin.maphelper.col.method.impl.ColCreateMethodImpl;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;

import java.util.Set;

/**
 * guava Lists
 *
 * @author Ye Junhui
 * @since 2024/3/12
 */
public class GuavaListsCreateOperation implements IColCreateOperation {
    @Override
    public String getClassQualifiedName() {
        return Lists.class.getName();
    }

    @Override
    public Set<IColCreateMethod> getCreateMethods() {
        return Sets.newHashSet(
                new ColCreateMethodImpl("newArrayList",-1),
                new ColCreateMethodImpl("newArrayList",1),
                new ColCreateMethodImpl("newCopyOnWriteArrayList",1),
                new ColCreateMethodImpl("newLinkedList",1)
        );
    }
}
